package org.paradigmshift.timelapse.ui

import scala.swing.CheckBox
import scala.swing.event.ButtonClicked

class PreferencesCheckBox( saveAction:(Boolean) => Unit, initAction: () => Boolean ) extends CheckBox with PreferencesInput {
  def init() = selected = initAction()
  def save() = saveAction( selected )
  init
}